import request from '@/utils/request'

// 查询城市管理列表
export function listCityConfig(query) {
	return request({
		url: '/cityConfig/cityConfig/list',
		method: 'get',
		params: query
	})
}

// 查询城市管理详细
export function getCityConfig(id) {
	return request({
		url: '/cityConfig/cityConfig/' + id,
		method: 'get'
	})
}

// 新增城市管理
export function addCityConfig(data) {
	return request({
		url: '/cityConfig/cityConfig/addCity',
		method: 'post',
		data: data
	})
}

// 修改城市管理
export function updateCityConfig(data) {
	return request({
		url: '/cityConfig/cityConfig',
		method: 'put',
		data: data
	})
}

// 删除城市管理
export function delCityConfig(id) {
	return request({
		url: '/cityConfig/cityConfig/' + id,
		method: 'delete'
	})
}
// 查询城市列表
export function selectAllCity(name) {
	return request({
		url: '/region/region/selectAllCity?cityName='+name,
		method: 'get',
	})
}